package com.coke.spring.sentinel.common;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author cwm
 * @Description TODO
 * @date 2021/8/31 上午11:19
 * @Version 1.0
 */
@Data
public class Product {
    private String id;
    private String name;
    private Double price;

    public Product() {
    }

    public Product(String id, String name, Double price) {
        this.id = id;
        this.name = name;
        this.price = price;
    }
    public static final List<Product> products=new ArrayList<Product>(){{
        add(new Product("1","手表",1000d));
        add(new Product("2","手机",2000d));
        add(new Product("3","电视机",3000d));
        add(new Product("4","电脑",4000d));
        add(new Product("5","汽车",5000d));
    }};
}
